define(["app"], function(app) {
	var deps = ["$http", "BaseService"];
	
	function resource($http, BaseService) {
		return initLotteryResource($http,BaseService.restfulUrl + "lottery/");
	}
	var postHeader = {
			"Content-Type" : "application/x-www-form-urlencoded;charset=utf-8"
	};
	function initLotteryResource($http,lotteryUrl){
		return {
			lottery : function() {
				return $http.get(lotteryUrl+'activities/1/sessions/20150812/drawLottery');
			},
			
			chanceNums : function() {
				return $http.get(lotteryUrl+'activities/1/sessions/20150812');
			},
			
			myprize : function() {
				//activities/1/winner
			}
		};
	}
	resource.$inject = deps;
	app.lazy.factory("LotteryResource", resource);
});
